<h4 class="widgettitle nomargin shadowed"><?php echo ucfirst($set) ?> Data Wali Kelas</h4>
<div class="widgetcontent bordered shadowed nopadding">
	<form class="stdform stdform2" method="POST" action="<?php echo base_url('admin/wali_kelas/simpan_data/'.$set) ?>">
		<input type="hidden" name="id" value="<?php echo $id ?>" />
		<input type="hidden" name="kode_kelas" value="<?php echo $kode_kelas ?>" />
		<p>
			<label for="nama_kelas">Nama Kelas</label>
			<span class="field">
                <input id="nama_kelas" disabled type="text" name="nama_kelas" class="input-medium" required value="<?php echo $nama_kelas ?>" />
			</span>
		</p>
		<p>
			<label for="id_guru">Nama guru</label>
			<span class="field">
                <select id="id_guru" name="id_guru" class="uniformselect">
                    <?php
                        foreach ($r_guru->result() as $v_guru)
                        {
                            if($v_guru->id == $id_guru)
                            echo '<option value="'.$v_guru->id.'" selected>'.$v_guru->nama_guru.'</option>';
                            else
                            echo '<option value="'.$v_guru->id.'" >'.$v_guru->nama_guru.'</option>';
                        }
                    ?>
                </select>
			</span>
		</p>
		<p>
			<label for="keterangan">Keterangan</label>
			<span class="field">
                <input id="keterangan" type="text" name="keterangan" class="input-xlarge" maxlength="50" value="<?php echo $keterangan ?>" />
			</span>
		</p>
        <p class="stdformbutton">
            <button class="btn btn-primary"><?php echo ucfirst($set) ?> Data Wali Kelas</button>
            <button type="reset" class="btn">Reset</button>
        </p>
	</form>
</div>